<template>
	<div>
		<van-nav-bar title="问题反馈" left-text="返回" left-arrow @click-left="$router.back()" />
		<div style="display: flex; flex-direction: column;">
			<van-field v-model="question" rows="5" autosize type="textarea" placeholder="请输入遇到的问题或建议" />
			<van-button round type="primary" @click="onSubmit" :disabled="question===''" style="margin: 5px 10px;">提交
			</van-button>
		</div>
	</div>
</template>

<script>
	export default {
		data() {
			return {
				question: ""
			}
		},
		methods: {
			//提交按钮
			onSubmit() {
				this.$notify({
					type: "success",
					message: "提交成功"
				})
				this.$router.back()
			}
		}
	}
</script>

<style scoped>
</style>
